# -*- coding: utf-8 -*-
# Author: xiantingDeng
# File: 01_前后方法调用.py
# Time: 18:33


import pytest

#
# class TestDemo():
#     def setup_class(self):
#         print('执行前调用')
#
#     def test_demo_1(self):
#         print("执行函数")
#
#     def teardown_class(self):
#         print("执行后调用")
#

# 模块级别： setup_module/teardown_module

# 函数级别： setup_function/teardown_function

# 类级： setup_class/teardown_class

# 类也可以 setup/teardown


def setup_function():
    print('执行前调用')

def test_demo_1():
    print("执行函数")

def teardown_function():
    print("执行后调用")


if __name__ == '__main__':
    pytest.main(["-s", "-v"])
